package nc.impl.dm.m4804.rule;

import nc.impl.pubapp.pattern.rule.IRule;
import nc.vo.dm.m4804.entity.DelivBillAggVO;
import nc.vo.pub.ISuperVO;
import nc.vo.pubapp.AppContext;
import nc.vo.pubapp.pattern.model.entity.bill.IBill;
import nc.vo.pubapp.util.AuditInfoUtils;

public class SetAddAuditInfoRule implements IRule<DelivBillAggVO> {
	public void process(DelivBillAggVO[] vos) {
		AuditInfoUtils.setAddAuditInfo((IBill[]) vos);
		ISuperVO vo = null;
		for (DelivBillAggVO delivBillAggVO : vos) {
			vo = delivBillAggVO.getParent();
			vo.setAttributeValue("billmaker", AppContext.getInstance().getPkUser());
			vo.setAttributeValue("dmakedate", AppContext.getInstance().getBusiDate());
		}
	}
}